<?php

namespace app\api\model;

use think\Model;

class Member extends Model
{
    //注册账号
    public static function register($data): bool
    {
        $memberData = self::where('member_mobile', '=', $data['member_mobile'])->find();
        if (!empty($memberData)) return false;//如果账号存在，返回false
        self::insert($data);
        return true;
    }
}
